package cn.sumpu.app.guoguojie.domain;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Date;

import cn.sumpu.app.guoguojie.util.Common;

public class LuckTime implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 7524519032666050172L;
    private String            identifier;
    private String            title;
    private String            ltime;
    private String            description;
    private String            status;
    private Integer           finanum;
    private Date              gmtCreated;
    private Date              gmtModified;

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getLtime() {
        return ltime;
    }

    public void setLtime(String ltime) {
        this.ltime = ltime;
    }

    public Integer getFinanum() {
        return finanum;
    }

    public void setFinanum(Integer finanum) {
        this.finanum = finanum;
    }

    public String getLtimeWeek() throws ParseException {
        String text = ltime;
        text += "&nbsp;" + Common.getWeekDay(Common.parseDate(ltime, "yyyy-MM-dd HH:mm:ss"));
        return text;
    }

    public String getLtimeTitle() throws ParseException {
        return ltime.substring(0, ltime.indexOf(" "));
    }
}
